<hr />
<?php foreach ($list['list'] as $v):
$i++;
do_action('view_whathot_item', array('item'=>&$v));
?>
        <div class="px11" style="margin-right:10px;float:right;color:#808080">查看次数: <?php echo $v['views']?></div>
        <table style="margin-left:20px">
        <tr>
            <td width="200" align="center"><div id="item<?php echo $v['id']?>" class="items"><a href="/<?php echo $v['id']?>" style="background:transparent"><img src="/images/items/s/<?php echo $v['model']?>.gif" width="150" height="150" alt="<?php echo $v['name']?>" class="<?php echo ($v['stocknum'] == 0 ? '' : ' hand')?>" /></a></div></td>
        <td>
        <font class="price">&yen; <?php echo preg_replace('/^(\d+)\.(\d+)$/', '$1.<font size="-2">$2</font>', $v['price1'])?></font>
        <?php if($v['price2']>floatval($v['price1'])):?>&nbsp;&nbsp;<font class="price_small">特价</font><?php endif?>
        <br />
        <b><a tabindex="2" href="/<?php echo $v['id']?>"><?php echo $v['name']?></a></b><?if($v['stocked'] == $v['updated'] && $v['stocknum']):?> - <b class="price_small">补货到!</b><?php endif?><br />
        <?php if($v['title']):?><b>说明：</b><?php echo $v['title']?><br /><?php endif;?>
        <b>材质：</b><?php echo $v['stuff']?><br />
        <?php
        //个性属性
        if(is_array($v['cols'])) {
            for($_i=1; $_i<=5; $_i++) {
                if ($v['cols']['key'.$_i] && $v['cols']['val'.$_i] && $v['cols']['key'.$_i] == '品牌') {
                    $brand = $v['cols']['val'.$_i];
                    if (strtolower($v['cols']['val'.$_i]) == 'loopo choice') $brand = 'LooPo';
                    echo "<b>{$v['cols']['key'.$_i]}：</b><a style='text-decoration:none' href='/brand/$brand'>{$v['cols']['val'.$_i]}</a><br />";
                }
            }
        }
        ?>
        <br />
        <?php if($v['stocknum'] == 0):?>
        <a tabindex="2" href="/alertme/<?php echo $v['id']?>" onclick="javascript:alertme(<?php echo $v['id']?>);return false"><span class="sprites btn_alertme">到货通知我</span></a>
        <?php else:?>
        <a tabindex="2" href="/addtocar/<?php echo $v['id']?>" onclick="javascript:addtocar(<?php echo $v['id']?>);this.href='#top'"><span class="sprites btn_addtocar">加入购物车</span></a>
        <script type="text/javascript">new Draggable('item<?php echo $v['id']?>',{revert:true,onDrag:function(element){__dg(element)},onEnd:function(element){__de(element)}})</script>
        <?php endif?>
        </td>
        </tr>
        </table>
        <?php if($i<>count($list['list'])):?><hr size="1" /><?php endif?>
<?php endforeach;?>
